package net.sourceforge.peers.sip.transaction;

import net.sourceforge.peers.Logger;

public class InviteServerTransactionStateConfirmed extends
        InviteServerTransactionState {

    public InviteServerTransactionStateConfirmed(String id,
                                                 InviteServerTransaction inviteServerTransaction, Logger logger) {
        super(id, inviteServerTransaction, logger);
    }

    @Override
    public void timerIFires() {
        InviteServerTransactionState nextState =
                inviteServerTransaction.TERMINATED;
        inviteServerTransaction.setState(nextState);
        // (dereference it in transaction manager serverTransactions hashtable)

        inviteServerTransaction.transactionManager.removeServerTransaction(
                inviteServerTransaction.branchId,
                inviteServerTransaction.method);
    }

}
